<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->any('/', 'HomeController@index');

//    $router->get('auth/login', 'AuthController@getLogin');
//    $router->post('auth/login', 'AuthController@postLogin');
    $router->resource('message','HouseMessageController');
    $router->resource('rent_and_purchase','RentAndPurchaseController');
    $router->resource('houseAudit','HouseAuditController');
    $router->resource('houseList','HouseListController');
    $router->resource('order','OrderController');
    $router->resource('purchase','HousePurchaseController');
    $router->resource('live','LiveStreamingController');
    $router->resource('broker','HouseBrokerController');
    $router->resource('feedback',"ProblemFeedbackController");
    $router->resource('playback','LivePlaybackController');
    Route::get('province',[\App\Http\Controllers\AddressController::class,'province']);
    Route::get('city',[\App\Http\Controllers\AddressController::class,'city']);
    Route::get('town',[\App\Http\Controllers\AddressController::class,'city']);

    $router->get('lives',[\App\Http\Controllers\LiveController::class,'myLive']);
});
